<%@ page import="institutional.Major" %>
<%@ page import="institutional.Subject" %>

			<div class="control-group fieldcontain ${hasErrors(bean: majorInstance, field: 'majorId', 'error')} required">
				<label for="majorId" class="control-label"><g:message code="major.majorId.label" default="Major Id" /><span class="required-indicator">*</span></label>
				<div class="controls">
					<g:field type="number" name="majorId" required="" value="${majorInstance.majorId}"/>
					<span class="help-inline">${hasErrors(bean: majorInstance, field: 'majorId', 'error')}</span>
				</div>
			</div>

			<div class="control-group fieldcontain ${hasErrors(bean: majorInstance, field: 'name', 'error')} ">
				<label for="name" class="control-label"><g:message code="major.name.label" default="Name" /></label>
				<div class="controls">
					<g:textField name="name" value="${majorInstance?.name}"/>
					<span class="help-inline">${hasErrors(bean: majorInstance, field: 'name', 'error')}</span>
				</div>
			</div>
	
	
			<div class="control-group fieldcontain ${hasErrors(bean: majorInstance, field: 'name', 'error')} ">
				<div class="control-group fieldcontaine ${hasErrors(bean: subjectInstance, field: 'subjects', 'errors')}">
					<label for="name" class="control-label"><g:message code="major.subjects.label" default="Subjects" /></label>
					<div class="controls">
						<g:select name="subjects" from="${ Subject.list() }" multiple="true"
							optionKey="id"
							value="${majorInstance.subjects*.id}"
						/>
					</div>
				</div>
			</div>
